package com.prototype.askquestion;

public class Test {
    public static void main(String[] args) {
        Tom tom1 = new Tom("one" ,1 , "red");
        //开始复制tom1
        Tom tom2 = new Tom(tom1.getName(), tom1.getAge() , tom1.getColor());
        Tom tom3 = new Tom(tom1.getName(), tom1.getAge() , tom1.getColor());
        Tom tom4 = new Tom(tom1.getName(), tom1.getAge() , tom1.getColor());
        Tom tom5 = new Tom(tom1.getName(), tom1.getAge() , tom1.getColor());
        // ····
        System.out.println(tom1);
        System.out.println(tom2);
        System.out.println(tom3);
        System.out.println(tom4);
        System.out.println(tom5);
    }
}
